<main>
    <?php
    $chapter = $_SESSION['chapterPanel'];
    $subject = $_SESSION['subjectPanel'];
    echo "<center><h1>" . $subject . ": " . $chapter . "</div></h1></center>";
    ?>
    <div class="form">
        <form action="/teacher/teacher.php" method="POST">
            <p>Question type</p>
            <label class="switch">
                <input type="checkbox" name="questionTypeMultiple" <?php if (isset($_POST['questionTypeMultiple'])) echo "checked ='checked'"; ?> onclick="this.form.submit()">
                <span class="slider round"></span>
            </label><br><br>
        </form>
    </div>
    <div class="form">
        <form action="/teacher/formLogic.php" method="POST">

            <label for="question">Question</label>
            <input type="text" id="question" name="question" placeholder="question text.." required>

            <label for="addPoints">Points for correct answer (0-10)</label>
            <input type="number" id="addPoints" name="addPoints" step="0.01" min="0" max="10" required><br>

            <label for="cutPoints">Minus points for wrong answer (0-10)</label>
            <input type="number" id="cutPoints" name="cutPoints" step="0.01" min="0" max="10" required><br><br>

            <input type="radio" name="answer" value="A" id="A" checked />
            <label for="true">A</label>
            <input type="text" id="answerA" name="answerA" placeholder="answer text.." required>

            <input type="radio" name="answer" value="B" id="B" />
            <label for="true">B</label>
            <input type="text" id="answerB" name="answerB" placeholder="answer text.." required>

            <input type="radio" name="answer" value="C" id="C" />
            <label for="true">C</label>
            <input type="text" id="answerC" name="answerC" placeholder="answer text.." required>

            <input type="radio" name="answer" value="D" id="D" />
            <label for="true">D</label>
            <input type="text" id="answerD" name="answerD" placeholder="answer text.." required>

            <input type="submit" value="Submit">
        </form>
    </div>
</main>